<p class="title">Example of including a file</p>
<h1>Basic tests</h1>
<p>Advanced Lists</p>
<p><code>org-ruby</code> supports the following list features of <code>org-mode</code>:</p>
<h1>Nested lists</h1>
<ul>
  <li>You can have nested lists</li>
  <li>This is first-level
    <ul>
      <li>This is a nested item</li>
      <li>This is another nested item</li>
    </ul>
  </li>
  <li>Back to the first level</li>
  <li>Another first level item
    <ol>
      <li>This is a numbered list nested within the unordered list</li>
      <li>This is another numbered item</li>
    </ol>
  </li>
</ul>
<p>Note the list ends just some more text. Make sure both list blocks
  are closed.</p>
<h1>Multi-paragraph list items</h1>
<p>This list will end with the end-of-file. Make sure all blocks are closed.</p>
<ul>
  <li>This is a list item</li>
  <li>This list item has multiple paragraphs.
    <p>This is paragraph two.</p>
    <p>And paragraph three.</p>
  </li>
  <li>Back to a list item.
    <ul>
      <li>Nested, just for grins!</li>
      <li>woo hoo!</li>
    </ul>
  </li>
</ul>
<h1>Hyphen, Plus and Asterisk can be used to create lists</h1>
<ul>
  <li>One
    <ul>
      <li>uno
        <ul>
          <li>ichi</li>
        </ul>
      </li>
      <li>uno</li>
    </ul>
  </li>
  <li>Two
    <ul>
      <li>dos
        <ul>
          <li>ni</li>
          <li>ni</li>
        </ul>
      </li>
    </ul>
  </li>
  <li>Three</li>
  <li>Four</li>
</ul>
<p>BLOCKCOMMENT</p>
<p>Testing that the next part is ignored</p>
<p>And now back to normal!</p>
<h1>Within a commented block</h1>
<pre class="example">
&lt;li&gt;[ ] &amp;#8220;smart quotes&amp;#8221;&lt;/li&gt; 
&lt;li&gt;[ ] I think I need this for &amp;#8216;single quotes&amp;#8217; too. Don&amp;#8217;t I?&lt;/li&gt; 
&lt;li&gt;[ ] Em dashes would be great &amp;#8212; wouldn&amp;#8217;t they?&lt;/li&gt; 
&lt;li&gt;[ ] I hope to develop an en dash sometime in 2010 &amp;#8211; 2011.&lt;/li&gt; 
</pre>
<h1>Within a center block</h1>
<div style="text-align: center">
  <p>The following included file will be centered:</p>
  <p>Inline Images</p>
  <p>Per the org-mode <a href="http://orgmode.org/manual/Images-and-tables.html#Images-and-tables">spec</a>, you can include inline images as links without
    any descriptive link text, like this:</p>
  <p><img src="http://farm5.static.flickr.com/4049/4358074549_5efb8b4903.jpg" alt="http://farm5.static.flickr.com/4049/4358074549_5efb8b4903.jpg" /></p>
  <p>I currently do not support the caption/link syntax, but I can include
    the inline image. I recognize the following image file types:</p>
  <ul>
    <li>.jpg</li>
    <li>.png</li>
    <li>.gif</li>
    <li>.jpeg</li>
  </ul>
</div>
<h1>Within a blockquote</h1>
<p>This is similar to the center block:</p>
<blockquote>
  <p>Before
    Inline Images</p>
  <p>Per the org-mode <a href="http://orgmode.org/manual/Images-and-tables.html#Images-and-tables">spec</a>, you can include inline images as links without
    any descriptive link text, like this:</p>
  <p><img src="http://farm5.static.flickr.com/4049/4358074549_5efb8b4903.jpg" alt="http://farm5.static.flickr.com/4049/4358074549_5efb8b4903.jpg" /></p>
  <p>I currently do not support the caption/link syntax, but I can include
    the inline image. I recognize the following image file types:</p>
  <ul>
    <li>.jpg</li>
    <li>.png</li>
    <li>.gif</li>
    <li>.jpeg</li>
  </ul>
  <p>After</p>
</blockquote>
<h1>Within an example block, it should not be possible to include a file.</h1>
<pre class="example">
#+INCLUDE: &quot;./spec/html_examples/only-list.org&quot;
</pre>
<h1>Within a list</h1>
<ul>
  <li>A list that has an included file directive
    <ul>
      <li>Only go to the first level
        <ul>
          <li>when included it always goes to the first level and absorbs next list items</li>
        </ul>
      </li>
    </ul>
  </li>
  <li>This file has only a list</li>
  <li>Note it will end with nothing other than a list item.</li>
  <li>the world wants to know: Will org-ruby write the closing ul tag?</li>
</ul>
<ul>
  <li>3rd level</li>
</ul>
<ul>
  <li>3rd level, though it should be a different list</li>
</ul>
<h1>Within a table, cannot be included</h1>
<table>
  <tr><th>One</th><th>Two</th><th>Three</th></tr>
  <tr><td>#+INCLUDE: &#8220;./spec/html_examples/only-list.org&#8221;</td><td>Five</td><td>Six</td></tr>
  <tr><td>Seven</td><td>Eight</td><td>Nine</td></tr>
</table>
<h1>When including a file as an example</h1>
<pre class="example">
- This file has only a list
- Note it will end with nothing other than a list item.
- the world wants to know: Will org-ruby write the closing ul tag?

</pre>
<h1>When including a file as an quote</h1>
<blockquote>
  <ul>
    <li>This file has only a list</li>
    <li>Note it will end with nothing other than a list item.</li>
    <li>the world wants to know: Will org-ruby write the closing ul tag?</li>
  </ul>
</blockquote>
